#ifndef _SKYBOX_H_
#define _SKYBOX_H_

#ifdef _WIN32
#pragma once
#endif

#include "d3dx9.h"
#include "d3dx9mesh.h"

#include "mesh.h"
#include "displayable.h"

struct TVertex
{
    float x, y, z;
    float tU, tV;
};

class CSkyBox
{
public:
    static CSkyBox *getInstance();
    
    void render();

    void changeSkybox(string szPath);
private:
    CSkyBox();
    ~CSkyBox();
    CSkyBox &operator=(const CSkyBox &rhs) {};
    CSkyBox(const CSkyBox &rhs) {};

    TVertex m_arrMesh[24];
    LPDIRECT3DVERTEXBUFFER9 m_pBuffer;

    string m_szTexturePath;
};

#endif